package com.mall.untils;

/**
 * 常量
 */
public class Constants {

    //***********************************微信使用的常量信息开始****************************
    // 菜单创建（POST） 限100（次/天）
	public static final String BASE_URL = "http://ceping.vxin365.com:8080/";

    public static String menu_create_url = "https://api.weixin.qq.com/cgi-bin/menu/create?access_token=";

    public static String grant_type = "client_credential";
    
    public static String php_url="http://ceping.ide365.com/api/";
    
    
   //线上版本--艾宝定制
   public static String appid = "wx70d9e457c6c96421";
   public static String secret = "0e6547542f261b163fa28267870eb1b7";
   public static String mch_id = "1311303201";
   public static String cert="test_cert.p12";
   public static String certPassword="707161";

   //线下版本--艾宝测试
//   public static String appid = "wxa5edbfd15adfa7bb";
//   public static String secret = "52a0388520e68de69959aba2e2755582";
//   public static String mch_id = "1311303201";
//   public static String cert="test_cert.p12";
//   public static String certPassword="707161";
   
   
   
   //支付签名
   public static String partnerkey="idealyuanzhangbangidealyuanzhang";
   
   
    //一般分隔符常量  ","
    public static final String SEPARATE = ",";


    /**
     * 我们自己公众帐号的token
     */
    public static String token_get_url = "https://api.weixin.qq.com/cgi-bin/token";

    /**
     * 用户授权的地址
     */
    public static String user_token_get_url = "https://api.weixin.qq.com/sns/oauth2/access_token";
    
  //微信下载mediaId的URL
    public static final String DOWNLOAD_MEDIA_URL = "http://file.api.weixin.qq.com/cgi-bin/media/get?access_token=%s&media_id=%s";

    //Bucket是OSS上的命名空间
    public static final String BUCKETNAME = "ideal";

    //大赛列表
    public static final String WX_DSLB_URL = "http://ceping.vxin365.com/get_all_active_competitions";
    
    //大赛发布
    public static final String WX_DSFB_URL = "http://ceping.vxin365.com/go_megagame_release";
    //大赛报名
    public static final String WX_DSBM_URL = "http://ceping.vxin365.com/go_megagame_signup";
    
    
    /**
     * 日期格式类型
     */
    public static final String DATE_FORMAT_DAY = "yyyy-MM-dd";

    /**
     * 日期格式类型
     */
    public static final String DATE_FORMAT_TIME = "yyyy-MM-dd HH:mm:ss";
    
    //定义图片名字img_ + 时间戳
    public static String getImgName() {
        String name = "img_" + System.currentTimeMillis() + ".jpg";
        return name;
    }
    /**
     * 访问响应状态
     */
    public static interface ResponseStatus {

        public static final String OK = "ok";

        public static final String ERROR = "error";

    }


    /**
     * 用户类型
     */
    public interface UserType {

        //路人
        int STRANGER = 4;

        //家长
        int PARENT = 1;

        //主班老师
        int TEACHER = 2;

        //园长
        int LEADER = 0;
    }


    /**
     * 今日消息类型
     */
    public interface Grade {

        int TuoEr = 1;

        int Xiao = 2;

        int Zhong = 3;

        int Da = 4;

        int XueQian = 5;
    }
    public static interface ExcelsDir {

        public static final String EXECLS = "excels/";

        public static final String VOICES = "voices/";

        public static final String BASE_EXECLS = "http://ceping.vxin365.com:8080/excels/excels/";

    }

    /**
     * 赞图片涉及到的功能
     */
    public interface ImageFunctionType {
        int class_news = 1;
        int activity_photo = 2;
    }
    
    /**
     * 今日消息类型
     */
    public interface ErrorMsg {
        String phone_code_error = "手机验证码不正确！";
        String code_error = "口令不正确！";
        String phone_reg="电话已存在！";
    }

    public static interface UploadImageDir {

        public static final String NEWS = "news/";

        public static final String BASE_NEWS = BASE_URL + "images/news/";

    }
    /**
     * 图片的桶
     */
    public static final String ALIYUN_IMAGE_BUCKET = "ideal";
}
